package com.ruoyi.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JumboPlatesStockInMapper;
import com.ruoyi.system.domain.JumboPlatesStockIn;
import com.ruoyi.system.service.IJumboPlatesStockInService;

/**
 * 原片入库Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-09
 */
@Service
public class JumboPlatesStockInServiceImpl implements IJumboPlatesStockInService {
    @Autowired
    private JumboPlatesStockInMapper jumboPlatesStockInMapper;

    /**
     * 查询原片入库
     *
     * @param keyId 原片入库主键
     * @return 原片入库
     */
    @Override
    public JumboPlatesStockIn selectJumboPlatesStockInByKeyId(Long keyId) {
        return jumboPlatesStockInMapper.selectJumboPlatesStockInByKeyId(keyId);
    }

    /**
     * 查询原片入库列表
     *
     * @param jumboPlatesStockIn 原片入库
     * @return 原片入库
     */
    @Override
    public List<JumboPlatesStockIn> selectJumboPlatesStockInList(JumboPlatesStockIn jumboPlatesStockIn) {
        return jumboPlatesStockInMapper.selectJumboPlatesStockInList(jumboPlatesStockIn);
    }

    /**
     * 新增原片入库
     *
     * @param jumboPlatesStockIn 原片入库
     * @return 结果
     */
    @Override
    public int insertJumboPlatesStockIn(JumboPlatesStockIn jumboPlatesStockIn) {
        return jumboPlatesStockInMapper.insertJumboPlatesStockIn(jumboPlatesStockIn);
    }

    /**
     * 修改原片入库
     *
     * @param jumboPlatesStockIn 原片入库
     * @return 结果
     */
    @Override
    public int updateJumboPlatesStockIn(JumboPlatesStockIn jumboPlatesStockIn) {
        return jumboPlatesStockInMapper.updateJumboPlatesStockIn(jumboPlatesStockIn);
    }

    /**
     * 批量删除原片入库
     *
     * @param keyIds 需要删除的原片入库主键
     * @return 结果
     */
    @Override
    public int deleteJumboPlatesStockInByKeyIds(Long[] keyIds) {
        return jumboPlatesStockInMapper.deleteJumboPlatesStockInByKeyIds(keyIds);
    }

    /**
     * 删除原片入库信息
     *
     * @param keyId 原片入库主键
     * @return 结果
     */
    @Override
    public int deleteJumboPlatesStockInByKeyId(Long keyId) {
        return jumboPlatesStockInMapper.deleteJumboPlatesStockInByKeyId(keyId);
    }
}
